#ifndef _algo_ecg_calculate_hr_H
#define _algo_ecg_calculate_hr_H
#include <stdint.h>
#include <math.h>

extern uint32_t rri_avg;
extern uint16_t hr;

#define Fs 256
#define max(a,b) ((a) > (b) ? (a) : (b))
#define min(a,b) ((a) < (b) ? (a) : (b))

uint8_t findPeaks(float num[256], uint16_t count);

#endif